import request from '@/utils/request'

// 查询文件列列表
export function listFileList(query) {
  return request({
    url: '/operation/fileList/list',
    method: 'get',
    params: query
  })
}

// 查询文件列详细
export function getFileList(id) {
  return request({
    url: '/operation/fileList/' + id,
    method: 'get'
  })
}

// 新增文件列
export function addFileList(data) {
  return request({
    url: '/operation/fileList',
    method: 'post',
    data: data
  })
}

// 修改文件列
export function updateFileList(data) {
  return request({
    url: '/operation/fileList',
    method: 'put',
    data: data
  })
}

// 删除文件列
export function delFileList(id) {
  return request({
    url: '/operation/fileList/' + id,
    method: 'delete'
  })
}
